package com.dragon.graduation.graduationMaterial.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.dragon.graduation.graduationMaterial.controller.dto.GraduationMaterialSearchDTO;
import com.dragon.graduation.graduationMaterial.controller.vo.GraduationMaterialVO;
import com.dragon.graduation.graduationMaterial.entity.GraduationMaterialEntity;
import com.dragon.graduation.graduationMaterial.mapper.GraduationMaterialMapper;
import com.dragon.graduation.graduationMaterial.service.GraduationMaterialService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 毕业材料表 服务实现类
 * </p>
 *
 * @author dragon
 * @since 2025-02-28 21:17:48
 */
@Service
public class GraduationMaterialServiceImpl extends ServiceImpl<GraduationMaterialMapper, GraduationMaterialEntity> implements GraduationMaterialService {

    @Override
    public GraduationMaterialEntity findByProjectIdAndStudentId(Integer projectId, Integer studentId) {
        return baseMapper.selectByProjectIdAndStudentId(projectId, studentId);
    }

    @Override
    public Page<GraduationMaterialVO> findPages(Page<GraduationMaterialEntity> entityPage, GraduationMaterialSearchDTO searchDTO) {
        return baseMapper.selectPages(entityPage,searchDTO);
    }
}
